package com.example.communist_app_api.db.dao;

import com.example.communist_app_api.db.pojoDto.Permission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PermissionDao {

    Permission getPermissionByPermission(Integer permissionId);

    List<Permission> getPermissionByParentId(int parentId);

    List<Permission> getAllPermission();

    Boolean creatNextFloor(Permission permission);

    Boolean updateMenuMessage(Permission permission);

    Boolean deleteMenuMessage(Integer permissionId);
}
